﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using W.Warehouse.Domain;
using W.Warehouse.Repository.Interface;

namespace W.Warehouse.Repository.Impl
{
    public class StatisticsRepository : BaseRepositoy<Statistics>, IStatisticsRepository
    {
        public StatisticsRepository(EFCoreDbContext context) : base(context)
        {
        }
        public EFCoreDbContext DB
        {
            get { return base.DB; }
        }
        public async Task<int> AddAsync(Statistics t)
        {
            return await base.AddAsync(t);
        }

        public async Task<int> AddRangeAsync(List<Statistics> t)
        {
            return await base.AddRangeAsync(t);
        }

        public async Task<List<Statistics>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }

        public async Task<List<Statistics>> GetAsync(Expression<Func<Statistics, bool>> expre)
        {
            return await base.GetAsync(expre);
        }

        public async Task<Statistics> GetModelAsync(int id)
        {
            return await base.GetModelAsync(id);
        }

        public async Task<int> UpdateAsync(Statistics t)
        {
            return await base.UpdateAsync(t);
        }

        public async Task<int> UpdateRangeAsync(List<Statistics> t)
        {
            return await base.UpdateRangeAsync(t);
        }
    }
}
